from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, scoped_session

engine = create_engine('sqlite:///:memory:', echo = True)
Session = sessionmaker(bind=engine)
session = Session()
Base = declarative_base()

def init_db():
    from user import User
    Base.metadata.create_all(bind=engine)
